﻿using ArduinoAnalyzer.Tokens;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArduinoAnalyzer.Tokens.LexicalAnalysis
{
    public class TokensReport
    {
        #region Constructors

        public TokensReport(IEnumerable<Token> tokens)
        {
            _tokens = tokens;
        }

        #endregion

        #region Private Members

        private IEnumerable<Token> _tokens;

        #endregion

        #region Public Methods

        public string GetReport()
        {
            var sb = new StringBuilder();

            foreach (var token in _tokens)
                sb.AppendLine(token.ToString());

            return sb.ToString();
        }

        #endregion
    }
}
